home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / dev / c / CLib37x.lha / c_lib / ReadMe_First < prev    next >
Encoding:
Text File  |  1997-08-22  |  11.9 KB  |  261 lines

  1.   example.library V37.16 (23.8.97)
  2.  
  3.   An Amiga shared library in 100 % C language - coming with sources.
  4.  
  5.   Compiler Checklist:        Compiler           Support
  6.                              -------------------------------
  7.    (see README.<compiler>    SAS/C 6.5x         yes
  8.     for more information)    MaxonC 3.x         yes
  9.                              StormC 2.x         yes
  10.                              DICE 3.x           (not tested)
  11.                              GCC 2.7.2.1        yes
  12.                              AztecC             (not tested)
  13.                              vbcc               (in work)
  14.  
  15.   OS Checklist:              Operating Sustem   Support
  16.                              -------------------------------
  17.                              Amiga OS 37-40     yes
  18.                              AROS 1.x           yes (AROS source tree)
  19.  
  20.  
  21.   Original SAS/C and StormC version (C) 1996-97 by Andreas R. Kleinert,
  22.   MaxonC version changes done 1996 by Helmut Hummel.
  23.   GCC version changes done 1997 by Stefan Fuchs and Gunter Nikl.
  24.   AROS source tree done 1997 by Aaron Digulla.
  25.   All rights reserved.
  26.   ----------------------------------------------------------------------
  27.   This sample library intends to make Amiga shared library sources
  28.   compileable with any available Amiga C compiler - without any
  29.   changes to the source code.
  30.   And maybe in the future also running under any Amiga compatible
  31.   operating system with any CPU.
  32.  
  33.   The first goal seams to be easily done: nearly any noticeable compiler
  34.   for the Amiga does support generation of libraries by special
  35.   linker commands and pre-generated object files.
  36.  
  37.   But when looking into the details, one will find out, that these
  38.   linker functionality just reduces the influence of the programmer
  39.   on how his sources are handled, that the pre-generated object
  40.   files just originally were done in Assembler, and that each compiler
  41.   does define its own interface definitions and usage rules.
  42.  
  43.   But as a programmer, it is important to have control over the _complete_
  44.   source code and to be able to compile it _anywhere_ with only
  45.   minor changes, even better without any changes.
  46.  
  47.   Since most Amiga system modules - noticeable Libraries, Devices and
  48.   Resources - do have startup-modules and other larger parts completely
  49.   written in Assembler language, the most important task for getting
  50.   inter-compiler and operating system independant sources in my opinion
  51.   is, to completely migrate the interfaces to C language (but different
  52.   to AROS, for example, it is most important, to keep the sources running
  53.   under the current 68k AmigaOS in the _first_ place).
  54.  
  55.   This goal basically has been reached already, still missing of
  56.   course are some of the less Amiga-native compilers and of course
  57.   tests with any kind of "AmigaOS for PowerPC".
  58.  
  59.   But since Assembler is nearly as portability-hostile as BCPL _today_
  60.   we may come quite close to the goal defined above by just moving
  61.   towards C.
  62.  
  63.   Translate your 68k-assembler library startup-codes smartly
  64.   to C by simply using this source-code as an advice how to do it.
  65.  
  66.   For testing: install the (re)compiled example.library to LIBS: and
  67.   start the test program - it should pop up a requester, then.
  68.  
  69.   If you can submit adjustments for the other compilers as mentioned
  70.   above: feel free to send these.
  71.   ---
  72.   Feel free to use this source for own projects.
  73.  
  74.   It is allowed to be spread and distributed anywhere, as far
  75.   as my consent is concerned.
  76.  
  77.   Amiga International, or the current owner of the technologie,
  78.   is allowed to always put this source on their newest
  79.   Developer CD-ROM.
  80.  
  81.   Thanks and credits will always be appreciated - for example,
  82.   you MAY, but NEED NOT:
  83.   give me credits in your program's docs, send me keyfiles for
  84.   your programs using the library, and so on.
  85.   But that's simply voluntarily.
  86.  
  87.    _________________________________________________________
  88.   |      You may reach me the following way.                |
  89.   |    Send bug-reports, money or whatever to:              |
  90.   |---------------------------------------------------------|
  91.   |        * SuperView Development & Registration *         |
  92.   |          * DRAFU Development & Registration *           |
  93.   |       * Image Engineer Registration Site Europe *       |
  94.   |                                                         |
  95.   |                                                         |
  96.   |                  PerSuaSiVe SoftWorX                    |
  97.   |                                                         |
  98.   |                  Andreas R. Kleinert                    |
  99.   |                  Sandstrasse 1                          |
  100.   |                  D-57072 Siegen                         |
  101.   |                  Germany, Europe                        |
  102.   |                                                         |
  103.   | Any snail mail to the old address will still be routed. |
  104.   |                                                         |
  105.   |                  Phone:  +49-271-22869 also FAX + AM    |
  106.   |                          +49-271-22838                  |
  107.   |                                                         |
  108.   |                  Weekdays after 17.00h.                 |
  109.   |                                                         |
  110.   |         When calling via phone you may leave a message, |
  111.   |         if I'm not available - but don't expect me      |
  112.   |         calling back to USA, Australia, ... since       |
  113.   |         german phone rates are HIGHLY expensive.        |
  114.   |_________________________________________________________|
  115.  
  116.     http://home.t-online.de/home/Andreas_Kleinert/
  117.  
  118.   eMail:
  119.  
  120.         Please send binaries via ARK@COB.wwbnet.de, and keep
  121.         them smaller than 16 KB. Please think twice before
  122.         sending them - my postbox is not unlimited in size.
  123.  
  124.            - Fido    Andreas Kleinert 2:2457/350.18
  125.            - Usenet
  126.                      Andreas_Kleinert@superview.ftn.neckar-alb.de (Fido-Gate)
  127.                      Andreas_Kleinert@t-online.de                 (T-Online)
  128.                      ARK@COB.wwbnet.de                            (Z-Netz)
  129.                      ARK@amigaworld.com                           (AmigaWorld)
  130.  
  131.            - If nothing else works, try one of these public
  132.              Fido-Usenet gateways:
  133.  
  134.                In Germany:
  135.                  Andreas_Kleinert@p18.f350.n2457.z2.fido.sub.org
  136.  
  137.                From USA or elsewhere:
  138.                  Andreas_Kleinert@p18.f350.n2457.z2.fidonet.org
  139.  
  140.  
  141.  Known Bugs:        - some versions of DOpus and all Installer versions
  142.                       can't fetch the version information from the
  143.                       library binary due to some bugs in their code.
  144.                       Newer DOpus versions have this fixed and C:Version
  145.                       for example did that task always.
  146.  
  147.  
  148.  History:
  149.  
  150.  V37.16 (23.8.97) : - V37.15 - frozen AROS spin-off
  151.                     - AROS-Version now included with AROS package, separately
  152.                     - added comments about Forbid/Permit/Wait/single-threading
  153.                       to the Library access functions
  154.                     - also commented the rest a little bit
  155.                       (-> maybe some certain people from comp.sys.amiga.programmer
  156.                           now feel better - but then again... maybe not ;)
  157.  
  158.  V37.14 (13.8.97) : - AROS: - the LH1_ to LH2_ macro replacements in
  159.                               "compiler.h" had been wrongly defined
  160.                             - "BPTR" type only was available under AROS,
  161.                               now using "struct SegList *"
  162.                             - AROS version now does compile under AmigaOS
  163.                               with SAS/C 6.58, too
  164.                     - "APTR seglist" now "struct SegList *"
  165.  
  166.  V37.13 (19.7.97) : - GNU makefile had lost its TABs
  167.                       (-> Gunter Nikl)
  168.  
  169.  V37.12 (29.6.97) : - fixed memory bug-fix (argh)
  170.                       (-> Gunter Nikl)
  171.                     - changed/applied GCC adjustments
  172.                       (-> diffs by Gunter Nikl)
  173.  
  174.  V37.11 (24.6.97) : - added "known bugs" section
  175.                     - LibInit now delocates library base on error
  176.                       (NULL return)
  177.                       (-> Gunter Nikl)
  178.                     - added AROS version, and created an additional
  179.                       source tree for it, since I did not get it compiled
  180.                       with SAS/C 6.57 and there's perhaps additional
  181.                       #ifdef stuf to be done. Anyone likes to merge these ?
  182.                       (-> Aaron Digulla)
  183.  
  184.  V37.10 (6.4.97) :  - added GCC version by Stefan Fuchs, snfuchs@sokrates.franken.de.
  185.                       Thanks !
  186.                     - some small changes to docs, includes and comments
  187.                     - still missing: DICE, Aztec, vbcc. Who does it ?
  188.                     - fixed ftn email address
  189.  
  190.  V37.6 (27.3.97) :  - finetuning
  191.  
  192.  V37.5 (24.1.97) :  - rewrote docs
  193.                     - added basic support for compiler independent
  194.                       register naming and SAS/C keyword replacements
  195.                       (compiler.h). Thus sources now should be easily
  196.                       adaptable for GCC as well.
  197.  
  198.  V37.4 (8.1.97) :   - added FD file
  199.                     - added new pragma file (and dir) as
  200.                       include/pragma/example_lib.h
  201.                       which works with Aztec, Maxon, Storm,
  202.                       DICE and SAS C compilers.
  203.                       Thanks to fd2pragma and Dirk Stoecker.
  204.                     - some fixes to the readme files
  205.                     - updated eMail list
  206.  
  207.  V37.3 (3.1.97) :   - slightly changed SCOPTIONS
  208.                     - fixed some style things (APTR and library casts)
  209.                     - changed note about library opening at L_OpenLibs()
  210.                     - now compileable with StormC 2.0 as well
  211.                       (not tested with 1.1) - see readme file for StormC
  212.                     - added project file for StormC 2.0, smakefile still
  213.                       present - select, which one you'd like to use
  214.  
  215.  V37.2 (12.12.96) : - applied some more changes and fixes
  216.                       (-> suggested by Helmut Hummel)
  217.                     - added icons
  218.                       (-> from Helmut Hummel)
  219.  
  220.  V37.1 (4.12.96) : - bumped version to V37
  221.                    - added MaxonC 3.x version by applying changes
  222.                      to the SAS/C sources and adding Maxon
  223.                      specific make and configuration files
  224.                      (-> all done by Helmut Hummel, see Readme.MAXON)
  225.                    - added StormC support
  226.                    - yet missing: DICE, Aztec, GNU. Who does it ?
  227.  
  228.  V1.4 (30.11.96) : - added SAS/C specific Ctrl-C disabling code
  229.                    - made some workarounds compiler sensitive
  230.                    - redone all with SAS/C V6.57
  231.                    - 944 Bytes ;-)
  232.  
  233.  V1.3 (13.9.96) :  - when starting lib as executable, -1 must be returned
  234.                    - now caching SysBase
  235.                    - added some comments, where changes should not
  236.                      be applied
  237.                    - added note about sharing library bases
  238.                    - documented and modified sample function,
  239.                      so that correct a0/a1/d0/d1 and a6 usage becomes
  240.                      more obviously and verbose
  241.                    - still 940 bytes ;-)
  242.  
  243.  V1.2 (5.9.96)  :  - fixed some things resulting out of a
  244.                      discussion in Z-Netz
  245.  
  246.  V1.1 (1.9.96)  :  - small changes in style
  247.                      (only bumped versions of changed modules):
  248.                        o moved "examplebase.h" to include/example/
  249.                          (so also adjusted LibInit.c, StartUp.c
  250.                           and SCOPTIONS for reflecting that)
  251.                        o SampleFuncs.h did contain wrong prototype
  252.                          (did not matter, since only used for
  253.                           ULONG function table within StartUp.c)
  254.                        o explicitely __aligned ROMTag structure
  255.  
  256.  V1.0 (14.8.96) : - first release
  257.  
  258.  
  259.  ---
  260.  All mentioned trademarks are subject to their owners.
  261.